package com.xwnet.basic.mapper;

import com.xwnet.basic.query.BasicQuery;
import com.xwnet.org.domain.Department;
import com.xwnet.org.query.DepartmentQuery;

import java.io.Serializable;
import java.util.List;

public interface BasicMapper<T> {
    void save(T t);
    void remove(Serializable id);
    void update(T t);
    T loadById(Serializable id);
    List<T> loadAll();
    /*分页方法*/
    Long loadCount(BasicQuery query);
    List<T> loadData(BasicQuery query);

    void batchRemove(List<Long> ids);
}
